package com.xuce.nzshopuserweb.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.thymeleaf.TemplateEngine;
import org.thymeleaf.context.Context;

/**
 * @author 徐策
 * @date 2020/3/11 20:47
 */
@Controller
@RequestMapping("user")
public class PageController {

    //跳转界面
    @RequestMapping("/page_{page}")
    public String page(@PathVariable("page") String page){
        return page; //跳转到模板引擎上
    }

}
